import Vue from 'vue'
import App from './App'
import router from './router'
import FastClick from 'fastclick'
import VueLazyload from 'vue-lazyload'
import BScroll from 'better-scroll'
import store from './store'
import axios from 'axios';//https://www.cnblogs.com/sophie_wang/p/7844119.html
import Qs from 'qs'
Vue.prototype.$axios = axios;
Vue.prototype.qs = Qs;

// var instance = axios.create({  //https://blog.csdn.net/qq_42514643/article/details/83827960 多链接
//   baseURL: 'https://api.bzqll.com/music/tencent/songList?key=579621905&id=',
//   timeout: 4000,
//   headers: {'X-Custom-Header': 'foobar'}
// });



Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('common/image/e89.jpg'),  
  loading:require('common/image/default.png'),
  attempt: 1
})

Vue.config.productionTip = false; 
FastClick.attach(document.body);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
	store,
  components: { App },
  template: '<App/>'
})
